<template>
  <div>
    <a-tag v-if="`${major}` === ENUM_MAJOR.MAIN">{{ t["主"] }}</a-tag>
    <a-tag v-else>{{ t["副"] }}</a-tag>
  </div>
</template>

<script setup lang="ts">
import { ENUM_MAJOR } from "@/enum/system.enum";

const t = translate("公共模块");

defineProps<{
  major: ENUM_MAJOR;
}>();
</script>

<style lang="scss" scoped></style>
